Skip to content

Conversation

@dan-fernandes
Copy link
Contributor

@dan-fernandes dan-fernandes commented Oct 21, 2025

Logs produced by Uvicorn's internals and blueapi are currently processed by different handlers. Due to this nothing produced by Uvicorn is being propagated to Graylog.

This PR relegates handling of Uvicorn logs to BlueAPI's handlers and standardises terminal formatting.

Fixes #1248

@dan-fernandes dan-fernandes requested a review from a team as a code owner October 21, 2025 12:55
@dan-fernandes dan-fernandes changed the title Propagate uvicorn logs fix: Propagate uvicorn logs Oct 21, 2025
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

❌ Patch coverage is 93.54839% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.75%. Comparing base (0ce8c59) to head (b044800).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/blueapi/service/main.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1250      +/-   ##
==========================================
+ Coverage   94.73%   94.75%   +0.02%     
==========================================
  Files          41       41              
  Lines        2638     2668      +30     
==========================================
+ Hits         2499     2528      +29     
- Misses        139      140       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DiamondJoseph
Copy link
Contributor

image Looks good, so much more consistent

@DiamondJoseph
Copy link
Contributor

I struggled to get examples of non-INFO logs, we should make sure some of our obvious use cases that I tried log errors (e.g. searching for a plan that doesn't exist etc.)

@DiamondJoseph DiamondJoseph merged commit e1d4b58 into main Oct 30, 2025
16 of 17 checks passed
@DiamondJoseph DiamondJoseph deleted the propagate-uvicorn-logs branch October 30, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uvicorn Logs Not Propagating

3 participants